
let apiBaseUrl = 'https://test.fengze.cloud';
const http = uni.$u.http;
// post请求
export const getlogincompany = (params, config = {}) => http.post(`${apiBaseUrl}/v5-wf-api/v1/login/getlogincompany`, params, config)
export const loginApi = (params, config = {}) => http.post(`${apiBaseUrl}/api/ApiWeChat/MiniProgram/Auth`, params, config)
export const phoneloginapi = (params, config = {}) => http.post(`${apiBaseUrl}/v5-wf-api/v1/login/phoneloginapi`, params, config)
export const getCurrUser = (params, config = {}) => http.post(`${apiBaseUrl}/v5-wf-api/v1/system/getcurruser`, params, config)



// get请求，注意：get请求的配置等，都在第二个参数中，详见前面解释
export const getMenu = (data) => http.get(`${apiBaseUrl}/ebapi/public_api/index`, data);



export default {
    getlogincompany,
    loginApi,
    phoneloginapi,
    getCurrUser,
    getMenu,
}